package com.cangxuan.backend.service.impl;

import com.cangxuan.backend.dao.ISeriesDao;
import com.cangxuan.backend.entity.Series;
import com.cangxuan.backend.service.ISeriesService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class SeriesServiceImpl implements ISeriesService {
    ISeriesDao seriesDao;

    @Autowired
    public void setSeriesDao(ISeriesDao seriesDao) {
        this.seriesDao = seriesDao;
    }

    @Override
    public List<Series> list() {
        List<Series> list = seriesDao.list();
        return list;
    }
}
